/*
 *  $Id: LightningCharge.cs 1051 2010-05-18 22:10:41Z thenn.erannor $
 *	This file is a part of Ragima CCG.
 *	(C) 2008 Ragima development group.
 *
 *	Licensed under the terms of the GNU GPL License version 2.
 *
 */

namespace Ragima.Cards001.Neutral.Abilities {
    public class LightningCharge: AbilityCard {
        public LightningCharge(): base("001_n_a_lightning_charge") {
            Element = ElementType.Neutral;
            AddManaCost(ElementType.Neutral, 1);
            TapCreatureAfterUse = false;
        }

        public override void DoAction(TargetArgs args) {
            args.Caster.AddAffect<LightningChargeAffect>();
        }

        private class LightningChargeAffect: SpellAffect<LightningCharge> {
            public LightningChargeAffect(): base() {
                TimeAffect time = new TimeAffect(4);
                time.Add(new Affects.FirstStrike());
                time.Add(new Affects.ModDamage(2));
                time.Add(new Affects.ModMaxHealth(-1));
                Add(time);
            }
        }
    }
}
